const router = require('koa-router')();

// router.prefix('/users')
const UserController = require('../controllers/user');

router.get('/', (ctx, next) => {
  ctx.body = 'this is a users response!';
});

router.get('/bar', (ctx, next) => {
  ctx.body = 'this is a users/bar response';
});

router.post('/signin', UserController.signin);

router.post('/login', UserController.login);

router.get('/deleteUser', UserController.deleteUser);

router.get('/getUserList', UserController.getUserList);

router.get('/getUserByRole', UserController.getUserByRole);

module.exports = router;
